package fans_group

import (
	"longmen/server/internal/rpc/tencentim/messages"
	"longmen/server/internal/rpc/tencentim/utils"
	pb "longmen/server/pkg/protobuf"
)

func C2CHandler(req *pb.CallbackReq, m *messages.IncomingMessage, b []byte) (*pb.CallbackResp, error) {
	switch *m.Type {
	case C2CFansGroupHistory:
		history, _ := bindChatHistory(req, b)
		return utils.CallbackOkResp(history), nil
	}
	return utils.CallbackOkResp(""), nil
}
